//
// Created by Administrator on 2020/7/16.
//
#include <iostream>

int main() {

    using namespace std;

    cout.setf(ios_base::fixed, ios_base::floatfield);
    cout << 1.0F << endl;

    float pi = {3.1415926};
    cout << pi << endl;

    int intVal = int(pi);
    cout << intVal << endl;

    long longVal = static_cast<long >(pi);
    cout << longVal << endl;

    return 0;
}